﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using ggHD.Domain.BizObj;
using OpenPop.Mime;
using OpenPop.Mime.Header;

namespace ggHD.Data
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IService1" in both code and config file together.
    [ServiceContract]
    public interface IMailService
    {
        [OperationContract]
        int LoadRawMails(DateTime date);

        [OperationContract]
        IEnumerable<MailHeader> GetMailHeaders(DateTime dateFrom, DateTime dateTo);

        [OperationContract]
        MailHeader GetMailHeader(long key);

        [OperationContract]
        RawMail GetRawMail(long key);

        [OperationContract]
        int GetRawMailsCount();

        // TODO: Add your service operations here
    }

    // Use a data contract as illustrated in the sample below to add composite types to service operations

}
